﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Adams.Admin.Business.Classifieds
{
    public static class Pending
    {
        public static Adams.Admin.DataTransfer.Classifieds.Pending.PageLoad PageLoad()
        {
            return DataAccess.Classifieds.Pending.PageLoad();
        }

        public static void UpdateStatus(Adams.Admin.DataTransfer.Classifieds.Pending.UpdateStatusInput input)
        {
            var save = new Adams.Admin.DataTransfer.Classifieds.Pending.UpdateStatusSave();
            Shared.ObjectHelper.CopyObject(input, ref save);

            save.ExpiresOn = DateTime.Now.AddDays(14);

            DataAccess.Classifieds.Pending.UpdateStatus(save);
        }
    }
}
